home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac: Not for Sale
/
Another.not.for.sale (Australia).iso
/
fade into you
/
getting there
/
Apps
/
MOO-1.7.6.src
/
MacTCP_2.0.2
/
GetMyIPAddr.h
< prev
next >
Wrap
Text File
|
1994-11-02
|
758b
|
37 lines
/*
GetMyIPAddr.h
C definitions of parameter block entries needed for IP calls
Copyright Apple Computer, Inc. 1989
All rights reserved
*/
#ifndef __GETMYIPADDR__
#define __GETMYIPADDR__
#ifndef __MACTCPCOMMONTYPES__
#include <MacTCPCommonTypes.h>
#endif
#define ipctlGetAddr 15 /* csCode to get our IP address */
#define GetIPParamBlockHeader \
struct QElem *qLink; \
short qType; \
short ioTrap; \
Ptr ioCmdAddr; \
ProcPtr ioCompletion; \
OSErr ioResult; \
StringPtr ioNamePtr; \
short ioVRefNum; \
short ioCRefNum; \
short csCode
struct GetAddrParamBlock {
GetIPParamBlockHeader; /* standard I/O header */
ip_addr ourAddress; /* our IP address */
long ourNetMask; /* our IP net mask */
};
#endif